package com.tql.pandian.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tql.pandian.entity.TqlEmpEntity;
import com.tql.pandian.entity.analysis.TqlCaseAnlasysEntity;
import com.tql.pandian.entity.analysis.dto.BillFoodReportDayDto;
import com.tql.pandian.entity.analysis.vo.FoodReportVo;
import com.tql.pandian.entity.analysis.vo.RealSummaryVo;
import com.tql.pandian.entity.analysis.vo.ShopBillListVo;
import com.tql.pandian.entity.vo.CaseAnalsysDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface AnotherDataBaseMapper{

    List<ShopBillListVo> selectShopBillList(Map map);

    List<RealSummaryVo> selectRealSummary(@Param("createTime") String createTime, @Param("tableName") String tableName);

    List<BillFoodReportDayDto> selectFoodReportList(@Param("createTime") Long createTime, @Param("tableName") String tableName,@Param("tableName") String deptId);

    int insertCaseAnlasys(@Param("caseAnalsys") TqlCaseAnlasysEntity caseAnalsys, @Param("tableName") String tableName);

    int insertBatchCaseAnlasys(@Param("list")List<TqlCaseAnlasysEntity> listCaseAnalsys, @Param("tableName") String tableName);

    List<CaseAnalsysDto> findStapCodeOfDeptCode();

    List<CaseAnalsysDto> findCurrentCaseAndCurrentConsume(@Param("arr") String[] arr, @Param("tabName") String tabName );

    List<CaseAnalsysDto> findCurrentConsume(@Param("reportDate")Long reportDate, @Param("tabName")String tabName);

    List<CaseAnalsysDto> findCurrentInum(@Param("FDate")String s, @Param("tabName")String tabName);

    void batchInsert(@Param("list")List<CaseAnalsysDto> list, @Param("tabName")String tabName);

    List<BillFoodReportDayDto> findDishFood(List<String> foodCodes, String deptId);
}
